{template header}
<style type="text/css">
    .table-striped td,
    .table-striped th { text-align: center;}
    .table-striped td:nth-child(2) { min-width:100px; max-width: 350px;}
</style>
<a class="btn btn-large btn-link" type="button" href="?c=actLottery&a=lotteryinfo">添加抽奖活动</a>
前段活动地址：{$hosts}/lotteryWeb/lotteryIndex/?l_id=活动ID
<div class="container-fluid">
  <table class="table table-striped">
        <thead>
            <tr>
                <th>活动ID</th>
                <th>标题</th>
                <th>虚拟参加人数</th>
                <th>虚拟抽奖码发放数</th>
                <th>开始时间</th>
                <th>结束时间</th>
                <th>编辑</th>
            </tr>
        </thead>
        <tbody>
            {loop $lotteryList $k $v}
            <tr>
                <td>{$v['id']}</td>
                <td>{$v['title']}</td>
                <td>{$v['init_joins']}</td>
                <td>{$v['init_code_provide']}</td>
                <td>{eval echo date("Y-m-d H:i:s", $v['start_time'])}</td>
                <td>{eval echo date("Y-m-d H:i:s", $v['end_time'])}</td>
                <td>
                    <a class="btn btn-edit" href="?c=actLottery&a=lotteryinfo&l_id={$v['id']}">编辑</a>
                    <a class="btn btn-edit enter-set" href="/?c=actLottery&a=codeInfo&lid={$v['id']}">查看/添加抽奖码</a>
                </td>
            </tr>
            {/loop}
        </tbody>
    </table>
</div>
<div class="pagination">
    <ul>
        {$pageStr}
    </ul>
</div>
<script type="text/javascript">

</script>
{template footer}
